<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>29隐藏显示-土豆案例伪元素改造</title>
    <style>
        .box {
            position: relative;
            width: 234px;
            height: 156px;
            margin: 100px auto;
        }
        
        .box a img {
            width: 100%;
            height: 100%;
        }
        
        .mask::before {
            position: absolute;
            content: "";
            /* 隐藏遮罩 */
            display: none;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .3) url('./study/images/play.png') no-repeat center;
        }
        /* 鼠标悬停显示遮罩 */
        
        .mask:hover::before {
            display: block;
        }
    </style>
</head>

<body>
    <h3>29隐藏显示-土豆案例伪元素改造</h3>
    <div class="box">
        <a href="https://www.bilibili.com/video/BV14J4114768?p=289&spm_id_from=pageDriver" class="mask" target="_blank" title="点击跳转">
            <img src="./study/images/box-bd2.png" alt="">
        </a>
    </div>

</body>

</html>